package com.cssw.fyzb.wap.service;

import com.cssw.fyzb.base.web.domain.AjaxPage;
import com.cssw.fyzb.wap.model.vo.MsgVo;
import com.ydn.appserver.MinaAppClient;
import com.ydn.appserver.Request;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author
 */
@Service
public class SysMsgService extends BaseService {

    @Autowired
    private MinaAppClient busiClient;

    /**
     * 获取系统消息
     *
     * @return
     */
    public AjaxPage<MsgVo> getSysMsg() {
        Request request = new Request("ListMsg");
        request.setParameter("pageNumber", 1);
        request.setParameter("pageSize", 100);
        return convertPage(busiClient.send(request), MsgVo.class);
    }
}
